package drds.server.route.parser.core.impl;

import java.sql.SQLNonTransientException;

import drds.server.config.model.Schema;
import drds.server.route.Route;
import drds.server.sqlparser.sqlobject.statement.Statement;
import drds.server.sqlparser.sqlobject.statement.delete.DeleteStatement;

public class DeleteParser extends DefaultParser {
	@Override
	public void statementParse(Route route, Schema schema, Statement statement) throws SQLNonTransientException {
		DeleteStatement deleteStatement = (DeleteStatement) statement;
		String tableName = deleteStatement.getTableName().getName();
		parserResult.addTableName(tableName);
	}
}
